
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>
<div id="screen-meta">
<div id="screen-options-wrap" class="hidden">
	<div class="metabox-prefs">
	<?$this->load->view('admin/tools/admin-adduser')?>
	</div>
</div>

<div id="screen-meta-links">
<div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
<a href="" id="show-settings-link" class="show-settings">Tambah User</a></div>
</div>
</div>

<div class="wrap">
	<div id="icon-index" class="icon32"><br /></div>
<h2>Panel Administrator</h2>

<div id="dashboard-widgets-wrap">
<form id="posts-filter" action="<?=site_url('administrator/delete_multi_user')?>" method="POST">
	<h2>Manage Users</h2>
	
	<ul class="subsubsub">
		<li><a href="<?=site_url('administrator/user')?>" <?if($pil=="all"){echo"class='current'";}?> >Semua User</a> | </li>
		<li><a href="<?=site_url('administrator/user_admin')?>" <?if($pil=="admin"){echo"class='current'";}?>>Administrator </a></li>
	</ul>
	<div style="float:right">
	<label>Search Users:</label>
	<input type="text" name="usersearch" value="" />
	<input type="submit" value="GO" class="button" />
	</div>
	

<div class="tablenav">
<div class="alignleft">
<input type="submit" value="Delete" name="deleteit" class="button-secondary delete" />
<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face="verdana" size="2" color="#FF0000">
			<div style="float:left">
				<center>Banyak Data : <b><?=$jumlah?></b></center>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
		</table>
</div>
</div>

<table width="900" border="3">
	<thead>
	<tr style="background:#E1E1E1;">
		<th scope="col" class="check-column"><input type="checkbox" /><br>&nbsp;</th>
		<th scope="col" width="20%">Username</th>
		<th scope="col" width="30%">Nama</th>
		<th scope="col" width="20%">Email</th>
		<th scope="col" width="13%">Level</th>
		<th scope="col" width="17%">Aksi</th>
	</tr>
	</thead>
	<tbody>
	
	<?foreach ($query as $row)
		{
			$id			= $row->id;
			$username	= $row->username;
			$nama		= $row->nama;
			$email	 	= $row->email;
			$level		= $row->status;
		?>
	<tr style="background:#00FFFF" valign="top">

		<th scope="row" class="check-column"><input type="checkbox" name="cekbok[]" value="<?=$id?>" /><br>&nbsp;</th>
		<td width="20%"><strong><?=$username;?></strong></td>
				
		<td width="30%"><?=$nama;?></td>
		<td width="20%"  align="left"><?=$email;?></td>
		<td width="13%" align="center"><strong><?=$level;?></strong></td>	
		<td width="17%" align="center"><a href="<?=site_url('administrator/edit_user/'.$id)?>" title="Edit Artikel"><img src="<?=base_url()?>css/icon/edit.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/delete_user/'.$id)?>" title="Delete Artikel"><img src="<?=base_url()?>css/icon/delete.png"></a></td>

		</tr>
	<?}?>
	</tbody>
</table>

</form>
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
